package com.cy.pj.sys.service;

import com.cy.pj.common.pojo.PageObject;
import com.cy.pj.sys.pojo.HouseUser;
import com.cy.pj.sys.pojo.SysHouse;
import com.cy.pj.sys.pojo.SysUser;

import java.util.List;

public interface ServiceHouse {
    //根据条件分页查询房屋
    PageObject<HouseUser> findHouses(String room, String area, Integer price, String place, String state, Integer pageCurrent);


    //根据id或userid查询房屋信息
    List<SysHouse> findHouseById(Integer id,Integer user_id);

    //基于id删除 房屋信息
    int deleteHouse(Integer id);
}
